<script setup>
import {List, Platform, User} from '@element-plus/icons-vue'
import ComputerManagerComponent from "@/components/computerComponents/ComputerManagerComponent.vue";
import ComputerUsageComponent from "@/components/computerComponents/ComputerManagerUsageComponent.vue";
import router from "@/router.js";
import ComputerManagerHistoryComponent from "@/components/computerComponents/ComputerManagerHistoryComponent.vue";

const goBack = () => {
  router.push('/manager/mangerindex')
}
</script>

<template>
  <el-page-header @back="goBack">
    <template #content>
      <span class="text-large font-600 mr-3"> 管理电脑后台页面 </span>
    </template>
  </el-page-header>
  <div class="computer-manager">
    <el-tabs type="border-card" class="demo-tabs">
      <el-tab-pane>
        <template #label>
        <span class="custom-tabs-label">
          <el-icon><Platform/></el-icon>
          <span>电脑信息管理</span>
        </span>
        </template>
          <ComputerManagerComponent />
      </el-tab-pane>
      <el-tab-pane>
        <template #label>
        <span class="custom-tabs-label">
          <el-icon><User/></el-icon>
          <span>电脑使用管理</span>
        </span>
        </template>
        <ComputerUsageComponent />
      </el-tab-pane>
      <el-tab-pane >
        <template #label>
        <span class="custom-tabs-label">
          <el-icon><List/></el-icon>
          <span>使用记录管理</span>
        </span>
        </template>
        <ComputerManagerHistoryComponent />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<style scoped>
.demo-tabs > .el-tabs__content {
  padding: 32px;
  color: #6b778c;
  font-size: 32px;
  font-weight: 600;
}
.demo-tabs .custom-tabs-label .el-icon {
  vertical-align: middle;
}
.demo-tabs .custom-tabs-label span {
  vertical-align: middle;
  margin-left: 4px;
}
.computer-manager {
  margin-top: 20px;
}
</style>